﻿using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using System.Collections.Generic;

namespace Glorysoft.EAP.EAPClient.Model
{
    public class DefectProduct : ViewModelBase
    {
        public string code;
        public string Code
        {
            get { return code; }
            set
            {
                code = value;
                RaisePropertyChanged("Code");
            }
        }
        public string desc;
        public string Desc
        {
            get { return desc; }
            set
            {
                desc = value;
                RaisePropertyChanged("Desc");
            }
        }
        public string qty;
        public string Qty
        {
            get { return qty; }
            set
            {
                qty = value;
                RaisePropertyChanged("Qty");
            }
        }

        public string pidname;
        public string PidList
        {
            get { return pidname; }
            set
            {
                pidname = value;
            }
        }
        public List<UNITLIST> pidlis;
        private RelayCommand<string> ConFirmCmd;
        public RelayCommand<string> ConfirmCmd
        {
            get
            {
                return ConFirmCmd ?? (ConFirmCmd = new RelayCommand<string>(TrackOutLossViewModel));
            }
        }
        public void TrackOutLossViewModel(string obj)
        {
            string var = desc;
            string var1 = qty;
        }
    }
}
